import { App } from 'vue'
import SvgIcon from "./SvgIcon/index.vue"
import Building from "./Building/index.vue"
import PaintedEggshel from "./PaintedEggshel/index.vue"
import MdView from "./MdView/index.vue"
import Like from "./Like/index.vue"
import thMap from "./thMap/index.vue"
import GlobalLoading from "./GlobalLoading/index.vue"
import serviceDrag from "./serviceDrag/index.vue"
import serviceHelp from "./serviceHelp/index.vue"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const allGloablComponent: any = { SvgIcon, Building, PaintedEggshel, MdView, Like, thMap, GlobalLoading, serviceDrag, serviceHelp }
export default {
  install(app: App) {
    Object.keys(allGloablComponent).forEach(key => {
      app.component(key, allGloablComponent[key])
    })
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  }
}